* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
  background: black;
  display: flex;
}

.box{
    width: 300px;
    height: 300px;
    position: relative;
    margin: auto;
    animation: animate 4s linear infinite;
    transform-style: preserve-3d;

}
@keyframes animate {
    0%{
        transform: rotateX(-30deg) rotateY(0deg);
    }
    100%{
        transform:rotateX(-30deg) rotateY(360deg);
    }
}
.top{
    width: 100%;
    height: 100%;
    background: #051515;
    transform: rotateX(90deg) translateZ(150px);
   transform-style: preserve-3d;
}
.top::after{
    display: block;
    content: "";
    width: 300px;
    height: 300px;
    background: red;
    transform: translateZ(-450px);
    filter: blur(20px);
    box-shadow: 0 0 120px 50px red;
}
.box .content{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}
.box .content span{
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#051515,red);
    transform: rotateY(calc(90deg * var(--i))) translateZ(150px);
    color:"red";
    font-size:80px;
   text-align: center;
   line-height: 300px;
   color: rgb(169, 157, 157);
}
